package log.rest.web;

import cn.log.collect.i.CollectService;
import cn.log.collect.pojo.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mr.ham
 * @date 2016/11/19 16:11
 */
@RestController
public class LogPutController {
    @Autowired
    private CollectService collectService;

    @RequestMapping("/put")
    String put (Log log){
        collectService.collect(log);
        return "put success";
    }
}
